﻿using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using GN.Pay.TradeChannel.DefaultImpl;
using GN.Pay.TradeChannel.AliPay;
using GN.Pay.Client.Utils;
using System.Text;

namespace GN.Pay.UnitTest
{
    [TestClass]
    public class UnitTest1
    {
        [TestMethod]
        public void TestMethod1()
        {
            Console.WriteLine(DateTimeUtils.CurrentUtcTimeStampMilliseconds);
            System.Threading.Thread.Sleep(10);
            Console.WriteLine(DateTime.Now.ToString("yyyyMMddHHmmssms"));
            System.Threading.Thread.Sleep(10);
            Console.WriteLine(DateTime.Now.ToString("yyyyMMddHHmmssms"));
            System.Threading.Thread.Sleep(10);
            Console.WriteLine(DateTime.Now.ToString("yyyyMMddHHmmssms"));
            System.Threading.Thread.Sleep(10);
            Console.WriteLine(DateTime.Now.ToString("yyyyMMddHHmmssms"));
            System.Threading.Thread.Sleep(10);
            Console.WriteLine(DateTime.Now.ToString("yyyyMMddHHmmssms"));
        }

        [TestMethod]
        public void TestMethod2()
        {
            string sign = Md5Utils.Sgin(Properties.Resources.a, Encoding.UTF8);
            Console.WriteLine(sign);

            string sign2 = Md5Utils.Sgin(Properties.Resources.b, Encoding.UTF8);
            Console.WriteLine(sign);

            bool cdd = sign.Equals(sign2);

            bool cdd2 = Properties.Resources.a.Equals(Properties.Resources.b);
            if (cdd2)
            {

            }
        }

    }
}
